package com.googlecode.jmicroerp.model;

import java.math.BigDecimal;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 *
 * @author alex
 */
@Entity
@Table(name = "n_tipuri_recipiente")
public class NTipRecipient extends AbstractNomenclator {
    private String caleImagine;
    private BigDecimal capacitate;
    private BigDecimal capacitateAlerta;
    private Boolean vanzareFranctionata;
    private NCategorie categorie;
    
    @Column(name = "CALE_IMAGINE", length = 255)
    public String getCaleImagine() {
        return caleImagine;
    }

    public void setCaleImagine(String caleImagine) {
        this.caleImagine = caleImagine;
    }

    @Column(name = "VANZARE_FRACTIONATA")
    public Boolean getVanzareFranctionata() {
        return vanzareFranctionata;
    }
    
    public void setVanzareFranctionata(Boolean vanzareFranctionata) {
        this.vanzareFranctionata = vanzareFranctionata;
    }

    @Column(name = "CAPACITATE")
    public BigDecimal getCapacitate() {
        return capacitate;
    }

    public void setCapacitate(BigDecimal capacitate) {
        this.capacitate = capacitate;
    }

    @Column(name = "CAPACITATE_ALERTA")
    public BigDecimal getCapacitateAlerta() {
        return capacitateAlerta;
    }

    public void setCapacitateAlerta(BigDecimal capacitateAlerta) {
        this.capacitateAlerta = capacitateAlerta;
    }

    @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
    @JoinColumn(name = "CATEGORIE_ID")
    public NCategorie getCategorie() {
        return categorie;
    }

    public void setCategorie(NCategorie categorie) {
        this.categorie = categorie;
    }
}
